package test.limit.utils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import junit.framework.TestCase;

public class TPropertiesUtil extends TestCase {
	
	
	public void testIsExsitFile(){
		String value = com.limit.utils.PropertiesUtil.load("db_diverclass");
		System.out.println(value);
	}
	
	public void testMap(){
		Map<String,Object> map1 = new HashMap<String,Object>();
		map1.put("id", "1");
		map1.put("name", "aaa");
		Map<String,Object> map2 = new HashMap<String,Object>();
		map2.put("id", "2");
		map2.put("name", "bbb");
		List<Map<String,Object>> list = new ArrayList<Map<String,Object>>();
		list.add(map1);
		list.add(map2);
		
		
		for(Map<String,Object> m : list){
			System.out.println(m.get("name"));
		}
	}
	
	
}
